﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace Apollo
{
    public partial class Application : HttpApplication
    {

        public static void LogError(string exceptionMessage)
        {
            log.Error(exceptionMessage);
        }
        public static void LogError(Exception ex)
        {
            log.Error(ex.Message, ex);
        }
        public static void LogError(string exceptionMessage, Exception ex)
        {
            log.Error(exceptionMessage, ex);
        }

        public static void LogWarning(string warningMessage)
        {
            log.Warn(warningMessage);
        }
        public static void LogWarning(Exception ex)
        {
            log.Warn(ex.Message, ex);
        }
        public static void LogWarning(string warningMessage, Exception ex)
        {
            log.Warn(warningMessage, ex);
        }

        public static void LogInfo(string infoMessage)
        {
            log.Info(infoMessage);
        }
        public static void LogInfo(Exception ex)
        {
            log.Info(ex.Message, ex);
        }
        public static void LogInfo(string infoMessage, Exception ex)
        {
            log.Info(infoMessage, ex);
        }

    }
}
